package com.nokia.pc3.core.transformers;

import com.nokia.pc3.core.xform.Transformer;

/**
 * Example transformer. Raise input value to power of 2.
 * 
 * @author jcroke
 *
 */
public class SquaredXfm extends Transformer {
	
	public void run() {
		System.out.println("Run: " + this.getClass().getCanonicalName());
		Double i = Double.parseDouble((String)(getInput()));
		putOutput(Double.toString(Math.pow(i, 2)));
	}
}
